package o;

import android.util.Log;
import androidx.annotation.NonNull;
import java.io.File;
import java.nio.ByteBuffer;
import o.sg.d;

public class va implements vk<File, ByteBuffer> {

    static final class c implements sg<ByteBuffer> {
        private final File ˋ;

        c(File file) {
            this.ˋ = file;
        }

        public void ˏ(@NonNull rl rlVar, @NonNull d<? super ByteBuffer> dVar) {
            try {
                dVar.ॱ(aam.ˏ(this.ˋ));
            } catch (Throwable e) {
                if (Log.isLoggable("ByteBufferFileLoader", 3)) {
                    Log.d("ByteBufferFileLoader", "Failed to obtain ByteBuffer for file", e);
                }
                dVar.ˏ(e);
            }
        }

        public void ˏ() {
        }

        public void ॱ() {
        }

        @NonNull
        public Class<ByteBuffer> ˋ() {
            return ByteBuffer.class;
        }

        @NonNull
        public rz ˎ() {
            return rz.LOCAL;
        }
    }

    public static class e implements vr<File, ByteBuffer> {
        @NonNull
        public vk<File, ByteBuffer> ˏ(@NonNull vo voVar) {
            return new va();
        }

        public void ॱ() {
        }
    }

    public /* synthetic */ boolean ˋ(@NonNull Object obj) {
        return ˏ((File) obj);
    }

    public /* synthetic */ o.vk.c ˎ(@NonNull Object obj, int i, int i2, @NonNull sc scVar) {
        return ˋ((File) obj, i, i2, scVar);
    }

    public o.vk.c<ByteBuffer> ˋ(@NonNull File file, int i, int i2, @NonNull sc scVar) {
        return new o.vk.c(new aai(file), new c(file));
    }

    public boolean ˏ(@NonNull File file) {
        return true;
    }
}
